.market-detail-panel {
    background: #FFF;
    padding: 20px;
    margin: 20px auto;
}

.market-detail {
    line-height: 48px;
    font-size: 20px;
    color: #333;
    &-title {
        display: inline-block;
        margin-right: 10px;
    }
    &-name {
        display: inline-block;
    }
}

.market-group {
    &-item {}
    &-title {
        font-size: 14px;
        font-weight: 500;
        color: #333;
        margin-bottom: 8px;
    }
    &-value {
        font-size: 15px;
        font-weight: 600;
        color: #333;
    }
}

.market-group-line {
    position: relative;
}

.market-group-line:before,
.market-group-line:after {
    content: '';
    border-left: 2px solid #CCC;
    position: absolute;
    top: -10px;
    height: 72px;
    bottom: 0;
}

.market-group-line:before {
    left: 0;
}

.market-group-line:after {
    right: 0;
}

.market-group-line.long:before,
.market-group-line.long:after {
    height: 92px;
}

.market-info {
    background: #ddeeff;
    padding: 20px;
    margin: 20px auto;
    &-block {}
    &-title {
        text-align: center;
        font-size: 20px;
        margin-bottom: 20px;
    }
    &-icon {
        color: #11aaee;
    }
    &-btn {
        padding: 2px 10px;
        font-size: 13px;
        background: #F7FBFF;
        color: #666;
    }
    &-btn:hover {
        background: #FFF;
        color: #333;
    }
}

.market-price {
    &-total {
        font-size: 28px;
        margin-bottom: 10px;
        text-align: center;
    }
    &-date {
        font-size: 14px;
        text-align: center;
    }
    &-perc {
        font-size: 20px;
        line-height: 35px;
    }
    &-add {
        font-size: 18px;
        line-height: 35px;
    }
}

.market-info-group {
    &-title {
        text-align: center;
        font-size: 16px;
        color: #333;
        line-height: 40px;
    }
    &-value {
        text-align: center;
        font-size: 12px;
        font-weight: 100;
    }
}

.price-add {
    color: #dd5e35;
}

.price-mutile {
    color: #74d75b;
}

.mtb20 {
    margin-bottom: 20px;
    margin-top: 20px;
}

.market-panel {
    .dropdown {
        color: #000;
    }
    .cf {
        color: #fff;
    }
    &-header {
        background: #1A1A1A;
        padding: 10px 20px;
    }
    &-content {
        height: 500px;
        background: #FFF;
    }
    &-footer {
        background: #ddeeff;
        padding: 10px 20px;
    }
    .operate {
        padding: 5px;
    }
    .full-screen {
        color: #fff;
    }
}

.dropdown-select {
    display: inline-block;
    .dropdown {
        &-menu {
            width: 100%;
            min-width: 50px;
            border-radius: 0px;
            margin: 0;
            border: 0;
            background-color: #000;
            border: 1px solid #f1f1f1;
            border-top: none;
        }
        &-toggle {
            // padding: 3px 10px;
            padding: 0 0 0 20px;
            border-radius: 0;
            background: #000;
            cursor: pointer;
            border: 1px solid #f1f1f1;
            color: #fff;
        }
        &-toggle:focus,
        &-toggle:hover,
        &-toggle:active,
        &-toggle:visited {
            box-shadow: none!important;
            outline: 0;
            // color: #000;
            background-color: transparent;
        }
        &-menu>li {
            cursor: pointer;
        }
        &-menu>li>a {
            padding: 3px 20px;
            color: #f1f1f1;
        }
        &-menu>li>a:hover {
            background-color: transparent;
        }
        &-block {
            width: 30px;
            line-height: 30px;
            margin-left: 20px;
            display: inline-block;
            // background-color: #f1f1f1;
            background-image: linear-gradient(#fff 0%, #B6B6B6 60%, #9E9E9E 100%);
            .caret {
                color: #000;
                border-width: 8px;
            }
        }
    }
}

.dropdown-input {
    display: inline-block;
    .dropdown {
        &-menu {
            min-width: 0;
            border-radius: 0px;
            margin: 0 10px;
            border: 0;
            padding: 0;
            width: 200px;
        }
        &-toggle {
            color: #fff;
            padding: 3px 10px;
            border-radius: 0;
            background: transparent;
            cursor: pointer;
        }
        &-toggle:focus,
        &-toggle:hover,
        &-toggle:active,
        &-toggle:visited {
            box-shadow: none!important;
            outline: 0;
        }
        .form-control {
            border-radius: 0;
        }
    }
}

.mr20p {
    margin-right: 20px;
    cursor: pointer;
}

.s-icon {
    height: 20px;
    width: 20px;
    margin-right: 10px;
}

.select-list {
    margin-bottom: 0;
    &-item {
        padding: 10px;
    }
}

.range {
    &-list {
        margin-bottom: 0;
    }
    &-item {
        border: 1px solid #666;
        margin: 0;
        float: left;
        padding: 4px 16px;
        cursor: pointer;
    }
    &-item:not(:first-child) {
        border-left: 0;
    }
    &-item.active {
        background: #2196f3;
        color: #FFF;
    }
}

.dropdown-stat {
    display: inline-block;
    .dropdown {
        &-content {
            position: absolute;
            z-index: 111;
            background: #FFF;
            padding: 10px 20px;
            min-width: 320px;
            max-height: 600px;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
            overflow-y: auto;
        }
        &-toggle {
            color: #fff;
            padding: 3px 10px;
            border-radius: 0;
            background: transparent;
            cursor: pointer;
        }
        &-toggle:focus,
        &-toggle:hover,
        &-toggle:active,
        &-toggle:visited {
            box-shadow: none!important;
            outline: 0;
        }
    }
}

.stat {
    border-bottom: 1px solid #999;
    padding: 5px 0 5px 0;
    &-header {
        padding: 5px 0;
    }
    &-title {
        display: inline-block;
        font-size: 16px;
        color: #444;
    }
    &-operate {
        float: right;
        margin-right: 10px;
        color: #444;
        font-size: 16px;
        cursor: pointer;
    }
    &-content {}
    &-list {}
    &-item {
        color: #666;
        margin-bottom: 5px;
    }
    &-item-header {
        display: inline-block;
        width: 100px;
        vertical-align: middle;
        margin-right: 20px;
    }
    &-item-type {}
    &-item-color {
        height: 20px;
        width: 20px;
        background: #000;
        vertical-align: middle;
    }
    &-item-desc {
        display: inline-block;
        vertical-align: middle;
        margin-right: 20px;
        width: 80px;
    }
    &-item-input {
        display: inline-block;
        height: 30px;
        width: 30px;
        vertical-align: middle;
        border-radius: 0;
        padding: 5px 2px;
    }
}

//重写样式
.market-detail-container {
    // padding: 0 15px;
    background-color: #1a1a1a;
    width: 100%;
    color: #f1f1f1;
    font-size: 12px;
    min-width: 1555px;
    -moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    // height: 100%;
    .c_r {
        color: #dd5e35;
    }
    .c_g {
        color: #74d75b;
    }
    .b_a {
        background-color: #1a1a1a;
    }
    .mb_20 {
        margin-bottom: 20px;
    }
    table {
        margin-bottom: 0px;
    }
    tbody,
    thead {
        color: #bbb;
    }
    //头部
    .market-fns {
        line-height: 50px;
        border-bottom: 1px solid #3C3C3C;
        color: #bbb;
        position: relative;
        &-logo {
            margin-right: 50px;
            width: 35px;
            height: 35px;
            a {
                display: block;
                height: 100%;
                img {
                    width: 100%;
                    height: 100%;
                }
            }
        }
        &-pannel-toggle {
            margin-right: 50px;
            font-size: 16px;
            &-handle {
                cursor: pointer;
                .market-fns-pannel {
                    display: none;
                }
            }
            &-handle:hover {
                text-decoration: underline;
                .market-fns-pannel {
                    display: block;
                }
            }
        }
        &-product {
            margin-right: 50px;
        }
        &-add-btn {
            margin-right: 65px;
            button {
                font-size: 12px;
                width: 100px;
                height: 20px;
                outline: none;
                color: #bbb;
                border-color: #242424;
                background-color: #000;
            }
        }
        &-limitup {
            color: #dd5e35;
        }
        &-limitdown {
            color: #74d75b;
        }
        &-price {
            margin-right: 65px;
            &-unit {
                margin-right: 10px;
            }
        }
        &-index {
            &-unit {
                margin-right: 20px;
                font-size: 12px!important;
                font-weight: normal!important;
            }
        }
        &-userinfo {
            margin-right: 100px;
        }
        .market-info-btn {
            box-shadow: inset 0px 3px 10px -4px;
            border-color: #ccc;
        }
    }
    //图表和表格
    .chartTransaction {
        display: flex;
        &-chart {
            flex: 8;
        }
        &-transaction {
            flex: 3;
        }
    }
    .card-box {
        background-color: #1a1a1a;
        color: #bbb;
        .row {
            margin: 0;
        }
    }
    .card-header {
        font-size: 12px;
        .business {
            padding: 15px 0 0 0;
        }
    }
    .card-content {
        tr {
            cursor: pointer;
        }
        thead {
            td {
                width: 33%;
                padding: 0!important;
            }
        }
        tbody {
            ul {
                min-height: 230px;
                overflow: auto;
                padding: 0;
                margin: 0;
                li {
                    padding: 5px 0;
                    list-style: none;
                    span {
                        width: 33%;
                    }
                }
            }
            ul::-webkit-scrollbar {
                width: 2px;
            }
            ul::-webkit-scrollbar-track {
                background-color: transparent;
            }
            ul::-webkit-scrollbar-thumb {
                background-color: #575757;
                border-radius: 5px;
            }
        }
    }
    .card-footer {
        padding: 0 41px 20px;
        border-top: 1px solid #575757;
        .row {
            line-height: 56px;
        }
    }
    //下面的两个部分
    .bottomposition {
        min-width: 1555px;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        background-color: #1a1a1a;
        .position {
            flex: 8
        }
        .buyshort {
            flex: 3;
        }
    }
    //持仓
    .position_nav {
        line-height: 40px;
        border-top: 1px solid #333;
        background-color: #1e1e1e;
        color: #777;
        .pull-left {
            padding: 0 14px;
            cursor: pointer;
            border-left: 1px solid #333;
        }
        .pull-left:nth-last-child(1) {
            border-right: 1px solid #333;
        }
        .active {
            color: #015cad;
        }
    }
    .market-table-head {
        width: 100%;
        display: table;
        border-top: 1px solid #333;
        color: #aaaeb1;
        border-bottom: none;
        line-height: 40px;
        text-align: center;
        span {
            display: table-cell;
            width: 11%;
        }
        span:nth-last-child(1) {
            border-right: none;
        }
    }
    // 委托和持仓
    .market-table {
        font-size: 12px;
        position: relative;
        padding: 0;
        list-style: none;
        border: 1px solid #333;
        border-right: 0;
        border-left: 0;
        height: 260px;
        overflow: auto;
        margin: 0 0 10px 0;
        li {
            width: 100%;
            display: table;
            border-bottom: 1px solid #333;
            color: #aaaeb1;
        }
        li span {
            display: table-cell;
            text-align: center;
            line-height: 35px;
            width: 11.1%;
        }
        li:nth-last-child(1) {
            border-bottom: none;
        }
    }
    .market-table::-webkit-scrollbar {
        width: 3px;
    }
    .market-table::-webkit-scrollbar-track {
        background-color: transparent;
    }
    .market-table::-webkit-scrollbar-thumb {
        background-color: #575757;
        border-radius: 5px;
    }
    .btn_revoke {
        background-color: #015cad;
        border-color: #015CAD;
        padding: 2px 10px;
        width: 55px;
    }
    //交易
    .buyshort {
        padding: 0;
        border-top: 1px solid #333;
        .b_a {
            box-shadow: none;
            color: #f1f1f1;
            border-color: #fff!important;
        }
        .input-group {
            margin-top: 10px;
            .input-group-addon {
                border-radius: 0;
                border-color: #555756;
                background-color: #2b3335;
                color: #bcc5c4;
            }
            .form-control {
                border-radius: 0;
                border-color: #555756;
                box-shadow: none;
                outline: none;
                background-color: transparent;
            }
        }
        &-lh40 {
            line-height: 40px;
        }
        &-head {
            line-height: 40px;
            background-color: #1e1e1e;
            border-bottom: 1px solid #333;
            padding: 0 20px;
            color: #777;
            display: flex;
            width: 100%;
            &-unit {
                flex: 1
            }
        }
        &-content {
            color: #bcc5c4;
            display: flex;
            width: 100%;
            &-unit {
                flex: 1;
                padding: 0 15px;
            }
        }
        &-warn {
            color: #d15a32;
            line-height: 40px;
        }
        &-orderamount {
            margin-bottom: 20px;
        }
    }
}